#include "aboutdialog.h"
#include "ui_aboutdialog.h"
#include <QProcess>
AboutDialog::AboutDialog(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::AboutDialog)
{
	
    setWindowFlags(Qt::WindowCloseButtonHint | Qt::MSWindowsFixedSizeDialogHint | Qt::Dialog);
    ui->setupUi(this);
    connect(ui->closeBtn, &QPushButton::clicked, this, &QDialog::close);
	connect(ui->btnChangeLog, &QPushButton::clicked, [=]() {
		QProcess pro;
		QString strPath = "notepad CHANGELOG.md";
		pro.startDetached(strPath);
	});
}

AboutDialog::~AboutDialog()
{
    delete ui;
}
